ex post facto

from a thing done afterward

Notes

Said of a law with retroactive effect.